## This is a fork from tw.forms.templates.input_field.mak
## Changes:
##    - if password field, do not display any value
##    - if the id has already been used, add a suffix

<%namespace name="tw" module="tw.core.mako_util"/>\
<input ${tw.attrs(
    [('type', context.get('type')),
     ('name', name),
     ('class', css_class),
     ('id', context.get('id')),
     ('value', context.get('type') != 'password' and value or '')],
    attrs=attrs
)} />